From: Florian Müllner Date: Wed, 6 Nov 2013 09:40:29 +0000 (+0100) Subject: dnd: Don't try to remove an invalid idle source X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~3068 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=735f589b1cfe374b43d54fe1b807d37b73d3c772;p=gnome-shell.git dnd: Don't try to remove an invalid idle source As the handler returns false, the corresponding source is removed automatically and its id invalidated. Reset the id to 0 to reflect this, otherwise newer versions of GLib will print a warning when we later try to remove it explicitly. https://bugzilla.gnome.org/show_bug.cgi?id=711555 --- diff --git a/js/ui/dnd.js b/js/ui/dnd.js index 54193ad80..8172ac51c 100644 --- a/js/ui/dnd.js +++ b/js/ui/dnd.js @@ -346,6 +346,7 @@ const _Draggable = new Lang.Class({ }, _updateDragHover : function () { + this._updateHoverId = 0; let target = this._dragActor.get_stage().get_actor_at_pos(Clutter.PickMode.ALL, this._dragX, this._dragY); let dragEvent = {